<?php
/**
 * <https://y.st./>
 * Copyright © 2017 //y.st. <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'title' => 'Code indentation',
	'subtitle' => 'The old tabs versus spaces argument',
	'copyright year' => '2017',
	'body' => <<<END
<p>Honestly, how you choose to indent your code is up to you. Some people use tabs, some people use spaces, and either option if fine. However, it drives me bonkers when people argue that everyone needs to indent using spaces. Really? Spaces are a horrible way to indent compared to tabs.</p>
<h2>Tabs are a single character</h2>
<p>When arguing that people need to use spaces to indent, it&apos;s often said that a <strong>*certain number*</strong> of spaces should be used. Uniformity is important, after all. But what could be more uniform than indenting using tab characters? With spaces, not only do you need to decide to use spaces instead of tabs, you need to decide how many spaces to use. With tabs, it&apos;s easy. No one indents using multiple tab characters because a tab character already takes up as much space as you tell your editor to make it take up.</p>
<h2>What is the tab character even for?</h2>
<p>Spaces are word separators. They&apos;re not meant for indentation. Do you know what character <strong>*is*</strong> meant for indentation? It&apos;s the tab character! Why not use the tab character for what it&apos;s meant for instead of ignoring it altogether?</p>
<p>Spaces make it easier to line things up. When trying to line up variable names in code or when trying to put Unicode art in your source code comments, spaces are great. However, tab characters have a semantic meaning. When indenting code, tabs are the way to go.</p>
<h2>Conclusions</h2>
<p>I don&apos;t care how you want to indent your code. However, please stop lecturing me about why I need to use spaces instead of tabs. You&apos;re wrong. If I&apos;m not in your employ and not making pull requests to your code, I&apos;ll indent however I please. And how I please is the only way that makes sense to me: using tab characters.</p>
END
);
